package com.ocom.common.request.exposeapi;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description: TODO
 * @Author: 朱晖
 * @Date: 2023/5/9
 **/
@Data
public class PlatformLoginAuthRequest {

	@NotBlank(message = "authCode 不能为空")
	String authCode;

	@NotNull(message = "timestamp 毫秒时间长不能为空")
	Long timestamp;

	@JsonProperty("srvId")
	@NotBlank(message = "srvId 不能为空")
	String srvId;
	@NotBlank(message = "nonceStr 不能为空")
	@Length(min = 32, max = 32, message = "nonceStr长度必须为32")
	String nonceStr;  // 32
	@Length(min = 32, max = 32, message = "sign长度必须为32")
	@NotBlank(message = "sign 不能为空")
	String sign;   //实际是 comAppId
}
